package com.cskaoyan.javase.basic._2variable._3detail;

/**
 * 小练习
 *
 * @since 17:36
 * @author wuguidong@cskaoyan.onaliyun.com
 */
public class Demo4 {
    public static void main(String[] args) {
        System.out.println('a');
        System.out.println('a' + 1);
        System.out.println("hello" + 'a' + 1);
        System.out.println('a' + 1 + "hello");
        System.out.println("5 + 5 = " + 5 + 5);
        System.out.println(5 + 5 + " = 5 + 5");
        System.out.println(5 + 5.0);
        System.out.println(5 + "5" + 5.0);

        byte b1 = 1, b2 = 2, b;
        // b = b1 + b2;
        // char c = b1 + b2;
        // 整数字面值默认当成int处理,所以代码中出现的整数字面值最长不能超过十位,不能超过int取值范围
        // Integer number too large
        // long d = 11111111111;
        long d = 11111111111L;
    }
}
